<?php 
if($user['statusID'] != 12 && $user['statusID'] != 13)
{ ?>
	 <form action="../article/write_article.php" enctype="multipart/form-data" method="post" class="form-horizontal">
		<div class="form-group">
			<label for="ttl" class="col-xs-3 control-label label-lg">Titre de l'article</label>
			<div class="col-xs-9">
				<input  type="text" name="title" id="ttl" maxlength="50" class="form-control input-lg" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-3 control-label">Type d'article</label>
			<div class="col-xs-9 radio">
				<label for="news" class="col-xs-2">
					<input type="radio" name = "type" id = "news" checked value ="News" /> News
				</label>
				<label for="test" class="col-xs-2">
					<input type="radio" name = "type" id ="test" value = "Test"/> Test
				</label>
			</div>
		</div>
		<div class="form-group">
			<label for = "comment_allowed" class="col-xs-3 control-label">Commentaires de l'article</label>
			<div class="col-xs-9 checkbox">
				<label for="comment_allowed">
					<input type = "checkbox" name = "comment_allowed" id = "comment_allowed" value = "True" checked /> Autorisé
				</label>
			</div>
		</div>
		<div class="form-group">
			<label for="image" class="col-xs-3 control-label">Image de l'article<br /><small> (inférieur à 5 Mio)</small></label>
			<div class="col-xs-9 checkbox">
				<input type="file" name="articleImg" id = "image" required/>
			</div>
		</div>
		<textarea class="col-xs-12" name="contentEditor" id="contentEditor" rows="10" cols="80" required>

		</textarea>
		<br />
		<input type="submit" id = "valider" name="valider" value="Envoyer" class="btn btn-primary btn-lg btn-block"/>
	</form>
<?php }
else
{?>
	<div class="alert alert-danger center-block text-center half-size">
		Vous n'avez pas le droit de proposer un article
	</div>
<?php } ?>